package com.sidianzhong.sdz.utils;

public class Matches {

    public static final String PHONE_MATCHES = "^[1][3-9]\\d{9}$";

    public static final String PASSWORD_MATCHES = "^(?=.*\\d)(?=.*[a-zA-Z])[\\da-zA-Z]{8,20}$";

    public static final String PHONE_CODE_MATCHES = "^\\d{6}$";

    public static final String JY_PASSWORD_MATCHES = "^\\d{6}$";

    /**
     * 正则表达式：验证手机号
     */
    public static final String REGEX_MOBILE = "^\\d{11}$";
    public static final String REGEX_MOBILEs = "^\\d{1,12}$";

    /**
     * 正则表达式：验证邮箱
     */
    public static final String REGEX_EMAIL =
            "^[a-z0-9A-Z]+([-_.][a-z0-9A-Z]+)*@([a-z0-9A-Z]+[-.])+[a-z0-9A-Z]{2,4}$";
    /**
     * 正则表达式：验证密码
     */
    public static final String REGEX_PASSWORD = "^\\w{8,20}$";

    /**
     * 正则表达式：验证支付密码
     */
    public static final String REGEX_PAYPASSWORD = "^[0-9]{6}$";

    /**
     * 正则表达式：验证昵称
     */
    public static final String REGEX_NICKNAME = "^[\\u4e00-\\u9fa5a-zA-Z0-9_]{1,6}$";

    /**
     * 正则表达式：验证银行卡号
     */
    public static final String REGEX_BANKCARD = "^([1-9]{1})(\\d{14}|\\d{18})$";

}
